home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Eudora 1.3.1 / source / Include / tcp.h < prev    next >
Encoding:
Text File  |  1993-03-16  |  993 b   |  35 lines  |  [TEXT/MPS ]

  1. /* Copyright (c) 1990-1992 by the University of Illinois Board of Trustees */
  2. /************************************************************************
  3.  * declarations for dealing with tcp streams
  4.  ************************************************************************/
  5. int TCPConnectTrans(UPtr serverName, short port,Boolean silently);
  6. int TCPSendTrans(short count, UPtr text,long size, ...);
  7. int TCPRecvTrans(UPtr line,long *size);
  8. int TCPDisTrans(void);
  9. int TCPTransError(void);
  10. int TCPSendWDS(wdsEntry *theWDS);
  11. void TCPSilenceTrans(Boolean silence);
  12. short ClearICMP(void);
  13. int TCPDestroyTrans(void);
  14. int GetTCPStatus(TCPiopb *pb);
  15. UPtr TCPWhoAmI(Uptr who);
  16. int GetHostByAddr(struct hostInfo *hi, long addr);
  17.  
  18. #ifndef SLOW_CLOSE
  19. void TcpFastFlush(Boolean destroy);
  20. typedef struct FastPB
  21. {
  22.     TCPiopb pb;
  23.     Str63 buffer;
  24.     Ptr streamBuffer;
  25.     struct FastPB *next;
  26. } FastPB,*FastPBPtr;
  27. #endif
  28.  
  29. typedef struct
  30. {
  31.     Handle next;
  32.     struct hostInfo hi;
  33. } HostInfoQ, *HostInfoQPtr, **HostInfoQHandle;
  34.  
  35.